import { defineStore } from 'pinia'
// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


const useStore: any = defineStore('useStore', {
    state: () => {
        return {
            ListVenues: [
                { id: 1, name: "苍山管", tel: "182xxxx8951", address: "商场二楼", time: "2022-9-10", specificAddress: "能彻底从难道你就才能解决", email: '511xxxxx@qq.com', state: "可预约", des: "你家门口了不回就不回基本很难解决马克马克" },
                { id: 2, name: "睡得成", tel: "182xxxx8951", address: "商场二楼", time: "2022-9-10", specificAddress: "能彻底从难道你就才能解决", email: '511xxxxx@qq.com', state: "已禁用", des: "你家门口了不回就不回基本很难解决马克马克" },
                { id: 3, name: "传参", tel: "182xxxx8951", address: "商场二楼", time: "2022-9-10", specificAddress: "能彻底从难道你就才能解决", email: '511xxxxx@qq.com', state: "已预约", des: "你家门口了不回就不回基本很难解决马克马克" },
                { id: 4, name: "写的是", tel: "182xxxx8951", address: "商场二楼", time: "2022-9-10", specificAddress: "能彻底从难道你就才能解决", email: '511xxxxx@qq.com', state: "可预约", des: "你家门口了不回就不回基本很难解决马克马克" }
            ],
            coupons: [
                { id: 1, name: "课程通用券", course: "课程一", state: "课程券", money: "10.00", num: 2, total: 21 },
                { id: 2, name: "商城通用券", course: "课程二", state: "商城券", money: "12.50", num: 5, total: 25 },
                { id: 3, name: "课程通用券", course: "课程三", state: "课程券", money: "8.50", num: 4, total: 12 },
                { id: 4, name: "商城专用券", course: "课程四", state: "商城券", money: "15.00", num: 3, total: 18 }
            ]
        }
    },
    getters: {},
    actions: {}
})

// useStore.use(piniaPluginPersistedstate)

export default useStore

// default export默认的导出  import A from './A'
// export const具名的导出 import { A } from './A'

